{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}E:\Github\Bolivia\00_replication_files\log-files/3_Table_D1.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}25 Jan 2022, 22:40:02
{txt}
{com}. 
. timer on 2
{txt}
{com}. 
. *-----------*
. * Table D.1 *
. *-----------*
.         use "data/outputs/computo_verificadortrepdate_missingsatthend.dta", clear
{txt}
{com}.                 
.         quietly sum pcs_nbnn if trep_date_verificador >= tc(20oct2019 19:40:57) & ///
>                 trep_date_verificador <= tc(20oct2019 19:40:58), detail
{txt}
{com}.         local cutoff = `r(min)' 
{txt}
{com}.                 
.         * Post dummies
.         gen pcs_centered = pcs_nbnn - `cutoff'
{txt}
{com}.         gen post = pcs_nbnn >= `cutoff'
{txt}
{com}.         gen postXpcs = post * pcs_centered         
{txt}
{com}.         gen margin_nbnn = mshare_nbnn - cshare_nbnn // Excluding blancos y nulos
{txt}(4 missing values generated)

{com}.         
.         * Recinto ID
.         egen reci_id = group(Pais Dep Prov Muni Loc Reci)
{txt}
{com}.                 /* Note, in constructing the data set we made a correction
>                 such that recinto names are unique within localities. */
. 
.         eststo clear
{txt}
{com}.         eststo: reg margin_nbnn pcs_centered post postXpcs, cl(reci_id)

{txt}Linear regression                               Number of obs     = {res}    34,551
                                                {txt}F(3, 5296)        =  {res}    69.39
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0301
                                                {txt}Root MSE          =    {res} .44871

{txt}{ralign 78:(Std. Err. adjusted for {res:5,297} clusters in reci_id)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1} margin_nbnn{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
pcs_centered {c |}{col 14}{res}{space 2} .1729729{col 26}{space 2} .0233745{col 37}{space 1}    7.40{col 46}{space 3}0.000{col 54}{space 4} .1271492{col 67}{space 3} .2187966
{txt}{space 8}post {c |}{col 14}{res}{space 2} .1023493{col 26}{space 2}  .021453{col 37}{space 1}    4.77{col 46}{space 3}0.000{col 54}{space 4} .0602926{col 67}{space 3}  .144406
{txt}{space 4}postXpcs {c |}{col 14}{res}{space 2}-.0263806{col 26}{space 2} .2425518{col 37}{space 1}   -0.11{col 46}{space 3}0.913{col 54}{space 4}-.5018821{col 67}{space 3} .4491208
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1736125{col 26}{space 2} .0133035{col 37}{space 1}   13.05{col 46}{space 3}0.000{col 54}{space 4} .1475321{col 67}{space 3} .1996928
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}({res}est1{txt} stored)

{com}.         eststo: reghdfe margin_nbnn pcs_centered post postXpcs, a(reci_id) cl(reci_id)
{res}{txt}(dropped 1605 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    32,946
{txt}Absorbing 1 HDFE group{col 51}F({res}   3{txt},{res}   3691{txt}){col 67}= {res}      8.52
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9553
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9497
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0010
{txt}{col 1}Number of clusters ({res}reci_id{txt}) {col 30}= {res}     3,692{txt}{col 51}Root MSE{col 67}= {res}    0.1009

{txt}{ralign 78:(Std. Err. adjusted for {res:3,692} clusters in reci_id)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1} margin_nbnn{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
pcs_centered {c |}{col 14}{res}{space 2}  .013559{col 26}{space 2} .0033271{col 37}{space 1}    4.08{col 46}{space 3}0.000{col 54}{space 4} .0070358{col 67}{space 3} .0200821
{txt}{space 8}post {c |}{col 14}{res}{space 2}  .004698{col 26}{space 2} .0033865{col 37}{space 1}    1.39{col 46}{space 3}0.165{col 54}{space 4}-.0019416{col 67}{space 3} .0113377
{txt}{space 4}postXpcs {c |}{col 14}{res}{space 2}-.0653226{col 26}{space 2} .0377796{col 37}{space 1}   -1.73{col 46}{space 3}0.084{col 54}{space 4}-.1393936{col 67}{space 3} .0087483
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .110952{col 26}{space 2} .0014281{col 37}{space 1}   77.69{col 46}{space 3}0.000{col 54}{space 4}  .108152{col 67}{space 3}  .113752
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}     reci_id{col 14}{c |}{space 1}     3692{col 27}{space 1}     3692{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}.         eststo: reghdfe margin_nbnn post, a(reci_id) cl(reci_id)
{res}{txt}(dropped 1605 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    32,946
{txt}Absorbing 1 HDFE group{col 51}F({res}   1{txt},{res}   3691{txt}){col 67}= {res}      8.73
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0031
{txt}{col 51}R-squared{col 67}= {res}    0.9553
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9497
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0003
{txt}{col 1}Number of clusters ({res}reci_id{txt}) {col 30}= {res}     3,692{txt}{col 51}Root MSE{col 67}= {res}    0.1009

{txt}{ralign 78:(Std. Err. adjusted for {res:3,692} clusters in reci_id)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1} margin_nbnn{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}post {c |}{col 14}{res}{space 2} .0056552{col 26}{space 2} .0019138{col 37}{space 1}    2.95{col 46}{space 3}0.003{col 54}{space 4}  .001903{col 67}{space 3} .0094075
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}   .10519{col 26}{space 2} .0002776{col 37}{space 1}  378.99{col 46}{space 3}0.000{col 54}{space 4} .1046458{col 67}{space 3} .1057342
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}     reci_id{col 14}{c |}{space 1}     3692{col 27}{space 1}     3692{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}.         eststo: reghdfe margin_nbnn post pcs_centered, a(reci_id) cl(reci_id)
{res}{txt}(dropped 1605 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    32,946
{txt}Absorbing 1 HDFE group{col 51}F({res}   2{txt},{res}   3691{txt}){col 67}= {res}     11.61
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9553
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9497
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0009
{txt}{col 1}Number of clusters ({res}reci_id{txt}) {col 30}= {res}     3,692{txt}{col 51}Root MSE{col 67}= {res}    0.1009

{txt}{ralign 78:(Std. Err. adjusted for {res:3,692} clusters in reci_id)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1} margin_nbnn{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}post {c |}{col 14}{res}{space 2} .0002837{col 26}{space 2} .0023035{col 37}{space 1}    0.12{col 46}{space 3}0.902{col 54}{space 4}-.0042325{col 67}{space 3} .0047999
{txt}pcs_centered {c |}{col 14}{res}{space 2} .0128903{col 26}{space 2} .0032836{col 37}{space 1}    3.93{col 46}{space 3}0.000{col 54}{space 4} .0064526{col 67}{space 3} .0193281
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1106575{col 26}{space 2} .0014085{col 37}{space 1}   78.56{col 46}{space 3}0.000{col 54}{space 4}  .107896{col 67}{space 3} .1134191
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}     reci_id{col 14}{c |}{space 1}     3692{col 27}{space 1}     3692{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. 
.         * Labelling
.         label var pcs_centered "$\hat{c -(}\beta{c )-}_1$: Reporting time percentile$^\dagger$"
{txt}
{com}.         label var post "$\hat{c -(}\beta{c )-}_2$: Post shutdown"
{txt}
{com}.         label var postXpcs "$\hat{c -(}\beta{c )-}_3$: Percentile $\times$ Post"
{txt}
{com}. 
.         esttab using "outputs/generated/Table_D1.tex", ///
>                b(a2) replace alignment(S) substitute(\_ _) ///
>                    keep(pcs_centered post postXpcs) ///
>                gaps compress se nostar ///
>                bookt fragment label nomtitles ///
>                    nodepvars nonumbers nolines obslast ///
>                    cells(b(fmt(3)) se(fmt(a1) par))
{res}{txt}(note: file outputs/generated/Table_D1.tex not found)
(output written to {browse  `"outputs/generated/Table_D1.tex"'})

{com}. 
.         * Additional formating
.         insheet using "outputs/generated/Table_D1.tex", clear
{txt}(1 var, 12 obs)

{com}. 
.         drop in 1 / 1
{txt}(1 observation deleted)

{com}. 
.         replace v1 = "" if regexm(v1, "addlinespace")
{txt}(4 real changes made)

{com}.         replace v1 = " " + v1 if regexm(v1, "\)&") 
{txt}(3 real changes made)

{com}.         replace v1 = subinstr(v1, "Post shutdown", "Post shutdown (0/1)", .)
{txt}(1 real change made)

{com}.         replace v1 = subinstr(v1, "34", "34,", .) if regexm(v1, "Observations")
{txt}(1 real change made)

{com}.         replace v1 = subinstr(v1, "32", "32,", .) if regexm(v1, "Observations")
{txt}(1 real change made)

{com}.         replace v1 = "\midrule" if regexm(v1[_n + 1], "Observations")
{txt}(1 real change made)

{com}. 
.         outsheet using "outputs/generated/Table_D1.tex", nonames noquote replace
{txt}
{com}. 
. *------------------------------------------------------------------------------*
. timer off 2
{txt}
{com}. timer list 2
{res}   2:      0.85 /        1 =       0.8500
{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}E:\Github\Bolivia\00_replication_files\log-files/3_Table_D1.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}25 Jan 2022, 22:40:03
{txt}{.-}
{smcl}
{txt}{sf}{ul off}